<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}


    <div class="form-group">
        <label for="c-category_id" class="control-label col-xs-12 col-sm-2">{:__('Categoryid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-category_id" data-rule="required" class="form-control selectpicker" name="row[category_id]">
                {foreach name="parentList" item="vo"}
                <option data-type="{$vo.type}" class="all" value="{$key}" {in name="key" value="$row.category_id"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-ai" class="control-label col-xs-12 col-sm-2">{:__('Ai')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ai" data-rule="required" class="form-control" name="row[ai]" type="text" value="{$row.ai}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kyewordtype')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[keyword_type]', ['1'=>__('Kyewordtype1'),'2'=>__('Kyewordtype2'),'3'=>__('Kyewordtype3')],$row['keyword_type'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-tag" class="control-label col-xs-12 col-sm-2">{:__('Tag')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag" class="form-control" name="row[tag]" type="text" value="{$row.tag}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-long_keyword" class="control-label col-xs-12 col-sm-2">{:__('Longkeyword')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-long_keyword"  class="form-control" name="row[long_keyword]" type="text" value="{$row.long_keyword}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-lsi_keyword" class="control-label col-xs-12 col-sm-2">{:__('Lsikeyword')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lsi_keyword"  class="form-control" name="row[lsi_keyword]" type="text" value="{$row.lsi_keyword}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-main_keyword_article" class="control-label col-xs-12 col-sm-2">{:__('Mainkyewordarticle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_keyword_article"  class="form-control" name="row[main_keyword_article]" type="text" value="{$row.main_keyword_article}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-seotitle" class="control-label col-xs-12 col-sm-2">{:__('Seotitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seotitle" class="form-control" name="row[seo_title]" type="text" value="{$row.seo_title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-seo_keywords" class="control-label col-xs-12 col-sm-2">{:__('Seokeywords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seo_keywords"  class="form-control" name="row[seo_keywords]" type="text"  value="{$row.seo_keywords}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-img_alt" class="control-label col-xs-12 col-sm-2">{:__('Imgalt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-img_alt"  class="form-control" name="row[img_alt]" type="text" value="{$row.img_alt}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-seodesc" class="control-label col-xs-12 col-sm-2">{:__('Seodesc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seodesc" class="form-control" name="row[seo_desc]" type="text" value="{$row.seo_desc}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control editor" name="row[content]" type="text" >{$content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-url_path" class="control-label col-xs-12 col-sm-2">{:__('Urlpath')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url_path"  class="form-control" name="row[url_path]" type="text" value="{$row.url_path}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-summary" class="control-label col-xs-12 col-sm-2">{:__('Summary')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-summary"  class="form-control" name="row[summary]" type="text" >{$row.summary}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="{$row.image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="text" value="{$row.weigh}" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Status1'), '2'=>__('Status2')],$row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
